/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconRepay: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M832 160a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H192a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z m32 256H160v352a32 32 0 0 0 28.256 31.776L192 800h640a32 32 0 0 0 32-32V416z m-265.376 137.376a32 32 0 0 1 2.656 42.24l-2.656 3.008-9.376 9.376H736a32 32 0 0 1 31.776 28.256L768 640a32 32 0 0 1-28.256 31.776L736 672h-224c-27.264 0-41.504-31.552-25.056-51.936l2.432-2.688 64-64a32 32 0 0 1 45.248 0zM832 224H192a32 32 0 0 0-32 32v96h704V256a32 32 0 0 0-28.256-31.776L832 224z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconRepay.defaultProps = {
  size: 18,
};

export default IconRepay;
